package tests;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import controller.Calculator;

public class CalculatorTest {

	public Calculator calculating = Calculator.getInstance();

	@Test
	public void decimalToBinary() {

		assertEquals(calculating.convertDecimalToBinary(128), "10000000");
	}

	@Test
	public void binaryToDecimal() {

		assertEquals(255, calculating.convertBinaryToDecimal("11111111"));

	}

}
